package org.goldenport.g3.sample

import scala.xml._
import org.goldenport.g3._
import org.goldenport.g3.messages._
import org.goldenport.g3.atom._
import org.goldenport.g3.channels.evernote._

/**
 * @since   Jul. 27, 2010
 * @version Jul. 28, 2010
 * @author  ASAMI, Tomoharu
 **/
class EvernoteChannel7 extends G3Application with EvernoteContext {
  evernote('demogon)

  start(Get("readFromDefaultNotebook")) invoke("demogon") agent {
    case <en-note>{contents @ _*}</en-note> => {
      for (c <- contents) {
        println("EvernoteChannel7 = " + c + "," + c.getClass)
      }
      contents.toList
    }
  }
}
